package net.infamily.dao.impl;

import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

import net.infamily.dao.FamilyDao;
import net.infamily.dao.ProfileDao;
import net.infamily.dao.UserDao;

import com.google.inject.AbstractModule;
import com.google.inject.Scopes;

public class JdoDaoModule extends AbstractModule {
	@Override
	protected void configure() {
		requireBinding(PersistenceManager.class);
		requireBinding(PersistenceManagerFactory.class);
		bind(FamilyDao.class).to(FamilyDaoImpl.class).in(Scopes.SINGLETON);
		bind(ProfileDao.class).to(ProfileDaoImpl.class).in(Scopes.SINGLETON);
		bind(UserDao.class).to(UserDaoImpl.class).in(Scopes.SINGLETON);
	}
}

